#include<bits/stdc++.h>
using namespace std;
class Solution {
public:
    int maxFreqSum(string s) {
        map<char,int> mp;
        for(char ch:s) mp[ch]++;
        int a=0,b=0;
        for(auto it:mp)
        {
            char ch=it.first;
            if(ch=='a'||ch=='e'||ch=='i'||ch=='o'||ch=='u') a=max(a,it.second);
            else b=max(b,it.second);
        }
        return a+b;
    }
};